package cn.yotta.user.core.server.iface.common;

import lombok.*;

/**
 * @author wyaoyao
 * @date 2022/11/9 10:27
 */
public interface CaptchaGenerator {

    Captcha generateCaptcha();

    @AllArgsConstructor
    @Getter
    @Builder
    @NoArgsConstructor
    @Data
    class Captcha {
        /**
         * 验证码图片url
         */
        private  String imageUrl;

        /**
         * 验证码文本
         */
        private  String text;

        private  Integer expireTime;


    }

}
